package jay.home.bet.domain.logic;

import java.util.List;

import jay.home.bet.domain.Comp;
import jay.home.bet.domain.League;
import jay.home.bet.domain.Team;

public interface BasicService {

  Team getTeam(String id);

  Comp getComp(String id);
  
  /**home,road表示球队的id, time格式为"yyyy-MM-dd HH:mm:ss"*/
  Comp getCompByDetail(String home, String road, String time);

  League getLeague(String id);

  void updateTeam(Team team);

  void updateLeague(League league);

  /** 
   *  这个方法先不要实现, 因为一场比赛发布后就确定了, 没有修改的必要.而team等可以修改, 因为队名可变更的.
   */
  void updateComp(Comp comp);

  void insertTeam(Team team);

  void insertComp(Comp comp);

  void insertLeague(League league);
  
  List<Team> getTeamsByLeague( String leagueid );
  
  List<League> getLeagues();
  
  String getConfig(String key);
  
  List<Comp> getSettlableComps(int page, int range);
}